﻿namespace TeacherLoad.Classes
{
    internal class Specialization
    {
        private int _id = 0;
        private string _code = "Нет данных для отображениям";
        private string _nameSpec = "";
        private string _qualification = "";

        public int Id { get => _id; set => _id = value; }
        public string Code { get => _code; set => _code = value; }
        public string NameSpec { get => _nameSpec; set => _nameSpec = value; }
        public string Qualification { get => _qualification; set => _qualification = value; }
        public string Qual_str
        {
            get
            {
                if (_qualification != "")
                    return "Квалификация: " + _qualification;
                else return "";
            }
        }

        public Specialization() { }
        public Specialization(int id, string code, string nameSpec, string qualification)
        {
            Id = id;
            Code = code;
            NameSpec = nameSpec;
            Qualification = qualification;
        }

        public override string ToString()
        {
            return $"{Code} {NameSpec}";
        }
    }
}
